package com.example.db.entry;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.time.LocalDateTime;
import java.time.ZonedDateTime;

@Data
public class TTest {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;

    @TableField(fill = FieldFill.INSERT)
    private ZonedDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private ZonedDateTime updateTime;
}
